using System.Diagnostics;

namespace Water
{
    internal static class Program
    {
        static readonly Mutex mutex = new(true, "{3B4902E6-2B9B-4B52-BE7F-9A7F0C3C4381}");
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            if (mutex.WaitOne(TimeSpan.Zero, true))
            {
                ApplicationConfiguration.Initialize();
                Application.Run(new MainForm());
                mutex.ReleaseMutex();
            }
            else
            {
                MessageBox.Show("The application is already running.");
            }

        }
    }
}